
[dbo].[MatchingGiftPlanRule]
CREATE TABLE [dbo].[MatchingGiftPlanRule]
(
[MatchingGiftPlanRuleKey] [uniqueidentifier] NOT NULL,
[MatchingGiftPlanKey] [uniqueidentifier] NOT NULL,
[RuleKey] [uniqueidentifier] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MatchingGiftPlanRule] ADD CONSTRAINT [PK_MatchingGiftPlanRule] PRIMARY KEY CLUSTERED ([MatchingGiftPlanRuleKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MatchingGiftPlanRule_MatchingGiftPlanKey] ON [dbo].[MatchingGiftPlanRule] ([MatchingGiftPlanKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MatchingGiftPlanRule] ADD CONSTRAINT [FK_MatchingGiftPlanRule_MatchingGiftPlan] FOREIGN KEY ([MatchingGiftPlanKey]) REFERENCES [dbo].[MatchingGiftPlan] ([MatchingGiftPlanKey])
GO